package com.xiaotu.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author zhangxiao
 * @create 2021-08-20 9:39
 */
@Configuration
@PropertySource({"classpath:config.properties"})
public class FileConfig {

    /**
     * 文件上传路径
     */
    public static String fileUploadPath;

    @Value("${fileupload.path:\"\"}")
    public void setSessionHost(String path) {
        fileUploadPath = path;
    }

    public static String insert_tv_sql_path;

    @Value("${sqlPath.insert_tv_sql_path:\"\"}")
    public void setInsertTvSqlPath(String path) {
        insert_tv_sql_path = path;
    }

    public static String insert_movie_sql_path;

    @Value("${sqlPath.insert_movie_sql_path:\"\"}")
    public void setInsertMovieSqlPath(String path) {
        insert_movie_sql_path = path;
    }

    public static String insert_nettv_sql_path;

    @Value("${sqlPath.insert_nettv_sql_path:\"\"}")
    public void setInsertNetTvSqlPath(String path) {
        insert_nettv_sql_path = path;
    }

    public static String insert_nettv_hot_sql_path;

    @Value("${sqlPath.insert_nettv_hot_sql_path:\"\"}")
    public void setInsertNetTvSqlHotPath(String path) {
        insert_nettv_hot_sql_path = path;
    }

    public static String insert_netmovie_sql_path;

    @Value("${sqlPath.insert_netmovie_sql_path:\"\"}")
    public void setInsertNetMovieSqlPath(String path) {
        insert_netmovie_sql_path = path;
    }

    public static String insert_douban_sql_path;

    @Value("${sqlPath.insert_douban_sql_path:\"\"}")
    public void setInsertDouBanSqlPath(String path) {
        insert_douban_sql_path = path;
    }

    public static String insert_sw_movie_works_sql_path;

    @Value("${sqlPath.insert_sw_movie_works_sql_path:\"\"}")
    public void setInsertSwMovieWorksSqlPath(String path) {
        insert_sw_movie_works_sql_path = path;
    }

    public static String insert_sw_netmovie_works_sql_path;

    @Value("${sqlPath.insert_sw_netmovie_works_sql_path:\"\"}")
    public void setInsertSwNetMovieWorksSqlPath(String path) {
        insert_sw_netmovie_works_sql_path = path;
    }

    public static String ddl_tv_sql_path;

    @Value("${sqlPath.ddl_tv_sql_path:\"\"}")
    public void setDdlTvSqlPath(String path) {
        ddl_tv_sql_path = path;
    }

    public static String ddl_movie_sql_path;

    @Value("${sqlPath.ddl_movie_sql_path:\"\"}")
    public void setDdlMovieSqlPath(String path) {
        ddl_movie_sql_path = path;
    }

    public static String ddl_nettv_sql_path;

    @Value("${sqlPath.ddl_nettv_sql_path:\"\"}")
    public void setDdlNetTvSqlPath(String path) {
        ddl_nettv_sql_path = path;
    }

    public static String ddl_nettv_hot_sql_path;

    @Value("${sqlPath.ddl_nettv_hot_sql_path:\"\"}")
    public void setDdlNetTvHotSqlPath(String path) {
        ddl_nettv_hot_sql_path = path;
    }

    public static String ddl_netmovie_sql_path;

    @Value("${sqlPath.ddl_netmovie_sql_path:\"\"}")
    public void setDdlNetMovieSqlPath(String path) {
        ddl_netmovie_sql_path = path;
    }

    public static String ddl_douban_sql_path;

    @Value("${sqlPath.ddl_douban_sql_path:\"\"}")
    public void setDdlDouBanSqlPath(String path) {
        ddl_douban_sql_path = path;
    }

    public static String ddl_sw_movie_works_sql_path;

    @Value("${sqlPath.ddl_sw_movie_works_sql_path:\"\"}")
    public void setDdlSwMovieWorksSqlPath(String path) {
        ddl_sw_movie_works_sql_path = path;
    }

    public static String ddl_sw_netmovie_works_sql_path;

    @Value("${sqlPath.ddl_sw_netmovie_works_sql_path:\"\"}")
    public void setDdlSwNetMovieWorksSqlPath(String path) {
        ddl_sw_netmovie_works_sql_path = path;
    }

    public static String ddl_screenwriter_index_algorithm_sql_path;

    @Value("${sqlPath.ddl_screenwriter_index_algorithm_sql_path:\"\"}")
    public void setDdlScreenwriterIndexAlgorithmSqlPath(String path) {
        ddl_screenwriter_index_algorithm_sql_path = path;
    }

    public static String ddl_hot_screenwriter_index_algorithm_sql_path;

    @Value("${sqlPath.ddl_hot_screenwriter_index_algorithm_sql_path:\"\"}")
    public void setDdlHotScreenwriterIndexAlgorithmSqlPath(String path) {
        ddl_hot_screenwriter_index_algorithm_sql_path = path;
    }

}
